package freespiritsocial.io.user.ui.adapter.search

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.People
import freespiritsocial.io.user.databinding.ItemForYouPeopleBinding
import java.util.*

/**
 * for you people 页面
 */
class ForYouPeopleAdapter(
    data: ArrayList<People> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_for_you_people
):
    BaseQuickAdapter<People,BaseDataBindingHolder<ItemForYouPeopleBinding>>(layoutResIdRes,data) {

    override fun convert(holder: BaseDataBindingHolder<ItemForYouPeopleBinding>,item: People) = with(holder.dataBinding) {
        this?.people = item
    }
}